I am trying to remove address bar of browser from javascript. I am writing the following code
window.open('newWindow.aspx', 'new', 'width=' + width + ', height=' + height + ', toolbar=no,location=0, left=' + left + ',top=' + top + 'screenX=' + left + ',screenY=' + top + ', directories=no, menubar=no,scrollbars=no,resizable=no, status=no');
please help,
Thanks in advance
How can we remove address bar of browser
3557
29-Oct-2010
Updated on 20-May-2011
Anonymous User
20-May-2011Hi...
Try following code to hide address bar from browser
function openWindow(){ var browser=navigator.appName; if (browser==”Microsoft Internet Explorer”) { window.opener=self;} window.open(‘filename.htm’,'null’,'width=900,height=750, toolbar=no,scrollbars=no,location=no,resizable =yes’); window.moveTo(0,0); window.resizeTo(screen.width,screen.height-100); self.close(); }
May be this solve your problem.